package com.dataextend.mapper.cluster;

import com.dataextend.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface UserDao {
    int add(UserEntity userEntity);
    int update(UserEntity userEntity);
    void delete(Long id);
    UserEntity queryById(Long id);
    List<UserEntity> list();
    UserEntity queryByUser(String user);
}
